package com.vhr.mapper;

import com.vhr.VO.DimissionAdminVO;
import com.vhr.entities.Dimission;
import com.vhr.entities.DimissionExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface DimissionMapper {

    List<DimissionAdminVO> selectNoOperated();
    List<DimissionAdminVO> selectOperated();

    //管理员:条件模糊搜索查询离职申请记录
    List<DimissionAdminVO> listDimissionByCondition(@Param("deptId")Integer deptId,@Param("empName")String empName,@Param("dimissionStatus")Integer dimissionStatus);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int countByExample(DimissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int deleteByExample(DimissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int deleteByPrimaryKey(Integer dimissionId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int insert(Dimission record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int insertSelective(Dimission record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    List<Dimission> selectByExample(DimissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    Dimission selectByPrimaryKey(Integer dimissionId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int updateByExampleSelective(@Param("record") Dimission record, @Param("example") DimissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int updateByExample(@Param("record") Dimission record, @Param("example") DimissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int updateByPrimaryKeySelective(Dimission record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dimission
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int updateByPrimaryKey(Dimission record);
}